use crate::model::{UserDO};
use crate::pojo::vo::{UserVO};
use crate::entity::{ai_user::Model as AiUser};

impl From<AiUser> for UserVO {
    fn from(value: AiUser) -> Self {
        Self {
            id: value.id,
            account_no: value.account_no.unwrap_or_default(),
            name: value.name.unwrap_or_default(),
            status: value.status.unwrap_or_default(),
            token: "".to_string(),
        }
    }
}